--
-- Campo codambsuc en el subsistema de balanza
-- 

ALTER TABLE subsistemas.sub_balanza_turnotara
    ADD COLUMN codambsuc character varying(2) COLLATE pg_catalog."default";

COMMENT ON COLUMN subsistemas.sub_balanza_turnotara.codambsuc
    IS 'Sucursal de alta del turno';
	
ALTER TABLE subsistemas.sub_balanza_turnotara
    ADD CONSTRAINT gestion_ai_ambsucsub_balanza_turnotara FOREIGN KEY (codambsuc)
    REFERENCES public.ambsuc (cod) MATCH SIMPLE
    ON UPDATE NO ACTION
    ON DELETE RESTRICT;	
	
--
SELECT aaVersion('532.00','531.00');
--

